#@layout()
<script>
    $("#opertion-add").validate({
        rules:{
        
        
                "opertion.create_time":{
                    required:true
                },
        
        
                "opertion.opt_user":{
                    required:true
                },
        
        
                "opertion.opt_type":{
                    required:true
                },
        
        
                "opertion.content":{
                    required:true
                }
        
        },
        messages:{

        
        
                "blog.create_time":{
                required:"请输入创建时间..."
                },
        
        
                "blog.opt_user":{
                required:"请输入操作人..."
                },
        
        
                "blog.opt_type":{
                required:"请输入操作类型..."
                },
        
        
                "blog.content":{
                required:"请输入操作内容..."
                }
        
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/opertion/doAdd",
        data:$("#opertion-add").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
     <form class="form form-horizontal" id="opertion-add">
        #include("opertion-form.html")
     </form>
#end